package cn.iocoder.yudao.module.wms.controller.admin.sale.vo;

import cn.iocoder.yudao.module.wms.enums.RegConstants;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.*;
import java.util.*;
import jakarta.validation.constraints.*;

@Schema(description = "管理后台 - 销售新增/修改 Request VO")
@Data
public class SaleSaveReqVO {

    @Schema(description = "主键", requiredMode = Schema.RequiredMode.REQUIRED, example = "585")
    private String id;

    @NotBlank(message = "公司名称不能为空")
    @Schema(description = "公司名称")
    private String company;

    @NotBlank(message = "打款账号不能为空")
    @Schema(description = "打款账号")
    private String number;

    @NotBlank(message = "售出商品不能为空")
    @Schema(description = "商品id")
    private String cid;

    @Min(value = 1, message = "商品数量不能小于0")
    @NotNull(message = "商品数量不能为空")
    @Schema(description = "商品数量", example = "25050")
    private Integer count;

    @Pattern(regexp = RegConstants.PHONE_REG, message = "电话格式不正确")
    @NotBlank(message = "预留电话不能为空")
    @Schema(description = "预留电话")
    private String phone;

    @Schema(description = "备注", example = "你猜")
    private String description;
}